package com.api.syh56.shengyunhui.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.DefaultValue;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.time.LocalDateTime;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("driver")
public class Driver {
    @Column(name = "id",isKey = true,isAutoIncrement = true)
    Long id;

    @Column(name = "car_number",comment = "车牌号码，司机必填")
    private String carNumber;

    @Column(name ="car_type", comment = "车型")
    private String carType;

    @Column(name = "car_length", comment = "车长")
    private String carLength;

    @Column(name = "car_load", comment = "车载重")
    private String carLoad;

    @Column(name = "valid_time", comment = "道路运输证有效期")
    private LocalDateTime validTime;

    @Column(name = "drive_licence",comment = "驾驶证图片主页")
    private String driveLicence;

    @Column(name = "drive_licence2",comment = "驾驶证图片副页")
    private String driveLicence2;

    @Column(name = "vehicle_license",comment = "行驶证图片主页")
    private String vehicleLicense;

    @Column(name = "vehicle_license2",comment = "行驶证图片副页")
    private String vehicleLicense2;

    @Column(name = "uid",comment = "用户表id")
    Long uid;

    /**
     * 专线id
     */
    @Column(name = "ded_id",comment = "专线id")
    Long dedId;

    @TableLogic
    @Column(name = "is_deleted")
    @DefaultValue("false")
    private Boolean isDeleted;
}
